import Request from './request.js'

const API = {
    queryList: '/app/bus/people',
    queryTabList: '/app/bus/people/category',
    queryPeopleDetail: '/app/bus/people/service/info',
    PeopleDetailCollect: '/app/bus/user/collect',
    getUserEncryption: '/app/bus/encryption/user' 
}

// 查询找人列表
export const queryPeopleList = params => Request.get(API.queryList, {
    data: params
})

// 查询找人Tab列表
export const queryTabList = () => Request.get(API.queryTabList)

// 查询找人详情
export const queryPeopleDetail = params => Request.get(API.queryPeopleDetail, {
    params
});

// 找人详情页收藏
export const PeopleDetailCollect = params => Request.post(API.PeopleDetailCollect, {}, {data: params});

// 获取用户加密信息
export const getUserEncryption = (id) => Request.get(`${API.getUserEncryption}/${id}`);